<!--
 * @Autor: 王琛
 * @Description: 建筑信息管理
 * @Copyright: 版权归个人所有
-->
<style lang="stylus" scoped>
#textNav {
  //width: 70px;
  font-size: 13px;
  //background: linear-gradient(0deg, rgba(204, 159, 132, 0) 0%, rgba(224, 209, 186, 0) 100%);
  border-radius: 5px;
  padding: 5px 5px;
  box-sizing: border-box;
  text-align: center;
  color: #fff;
  white-space: nowrap;
  transition: all .5s;
  margin: 0 auto;
}

#textNav.select {
  background: linear-gradient(0deg, rgba(204, 159, 132, 1) 0%, rgba(224, 209, 186, 1) 100%);
}
</style>


<template>
  <div id="textNav" :class="{ select:_props.isSelect }">{{ _props?.config?.name || "菜单" }}</div>
</template>


<script setup lang="ts">
import {onMounted, reactive} from "vue";
import {useRouter} from "vue-router";
import {useStore} from "vuex";

const _props = defineProps({
  // 数据配置
  config: {
    type: Object,
    default: () => {
      return {}
    }
  },
  // 是否选择
  isSelect: {
    type: Boolean,
    default: false,
  }
})
const _data = reactive({});
onMounted(() => {
})
</script>

